import zipPack from 'vite-plugin-zip-pack'
import dayjs from 'dayjs'
import packageJson from '../../package.json'
export default function createZipPack(env) {
    return zipPack({
      inDir: 'dist',
      outDir: 'dist',
      outFileName: `${packageJson.name}-${env.VITE_APP_ENV}-v${packageJson.version}（${dayjs().format('YYYY-MM-DD-HH-mm-ss')}）.zip`
    })
}
